//
//  DBConnection.h
//  xueci
//
//  Created by koolearn on 11-4-11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>

#define DATABASE_NAME @"db1.3.sql"

#define kPKBitNumberGroup 12
#define kPKBitNumberPerson 12

@interface DBConnection : NSObject {

	
}

+ (void) createEditableCopyOfDatabaseIfNeeded: (BOOL) forceCreate ;

+ (sqlite3*) getDatabase;

+ (void) close;

+ (void)beginTransaction;

+ (void)commitTransaction;

+ (long long) createRandomNum:(NSInteger)bit;

+ (void) execute:(char*)sql;

@end
